import {REFRESH_LIST} from '../action/type';

export interface IReducer {
    componentRefreshReduce ?: any
}

function refreshList( state:any,obj:any){
    return  Object.assign(state,obj);
}

export function componentRefreshReduce(state ={}, action:any){
    switch (action.type) {
        case REFRESH_LIST:
            return refreshList(state,action.data);
        default:
            return state;
    }
}